package com.aspose.cells;

class zavr {
   private com.aspose.cells.b.a.zh a;
   private zavt b;

   zavr() {
      this.a = com.aspose.cells.b.a.zh.a;
      this.b = new zavt();
   }

   zavr(com.aspose.cells.b.a.d.zm var1) throws Exception {
      this.a = com.aspose.cells.b.a.zh.a;
      this.b = new zavt();
      var1.b(0L);
      com.aspose.cells.b.a.d.za var2 = new com.aspose.cells.b.a.d.za(var1, Encoding.getUnicode());
      var2.p();
      int var3 = var2.p();
      if ((var3 & '\uffff') != 0) {
         throw new UnsupportedOperationException("Cannot read property set in this format.");
      } else {
         var2.r();
         this.a = new com.aspose.cells.b.a.zh(var2.g(16));
         int var4 = var2.q();
         com.aspose.cells.b.a.zh[] var5 = new com.aspose.cells.b.a.zh[var4];
         int[] var6 = new int[var4];

         int var7;
         for(var7 = 0; var7 < var4; ++var7) {
            var5[var7] = new com.aspose.cells.b.a.zh(var2.g(16));
            var6[var7] = var2.q();
         }

         for(var7 = 0; var7 < var4; ++var7) {
            var2.k().b((long)var6[var7]);
            com.aspose.cells.b.a.a.ze.a(this.b, (Object)(new zavs(var5[var7], var2)));
         }

      }
   }

   void a(com.aspose.cells.b.a.d.zm var1) throws Exception {
      com.aspose.cells.b.a.d.zb var2 = new com.aspose.cells.b.a.d.zb(var1, Encoding.getUnicode());
      var2.a((int)65534);
      var2.a((int)0);
      var2.a(131333L);
      var2.a(this.a.a());
      var2.b(this.b.size());
      int var3 = (int)var1.i() + 20 * this.b.size();
      com.aspose.cells.b.a.d.zh var4 = new com.aspose.cells.b.a.d.zh();

      for(int var5 = 0; var5 < this.b.size(); ++var5) {
         var2.a(this.b.a(var5).c().a());
         int var6 = var3 + (int)var4.h();
         var2.b(var6);
         byte[] var7 = this.b.a(var5).a();
         var4.b(var7, 0, var7.length);
      }

      var1.b(var4.m(), 0, (int)var4.h());
   }

   zavt a() {
      return this.b;
   }
}
